package com.jason.sss.constant;

import lombok.Data;

public enum ResponseEnum {

    SUCCESS("200", "请求成功"),
    ERROR("500", "系统内部错误"),
    NOT_FOUND("404", "找不到资源"),
    NOT_LOGIN("501", "用户未登录，请重新登录"),
    LOGIN_ERROR("502", "用户名或密码错误"),
    EMPTY_USERNAME("503", "请输入用户名"),
    EMPTY_PASSWORD("504", "请输入密码");
    String code;

    String messgae;

    ResponseEnum(String code, String message) {
        this.code = code;
        this.messgae = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessgae() {
        return messgae;
    }

    public void setMessgae(String messgae) {
        this.messgae = messgae;
    }
}
